home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cxl400.arc / CXLEMS.H < prev    next >
Text File  |  1988-11-19  |  2KB  |  49 lines

  1.  
  2. /*
  3.    ┌──────────────────────────────────────────────────────────────────────────┐
  4.    │                                                                          │
  5.    │  CXLEMS.H - CXL (c) 1987, 1988 by Mike Smedley.                          │
  6.    │                                                                          │
  7.    │  This header file contains prototypes of CXL's Expanded Memory           │
  8.    │  Specification (EMS) functions.                                          │
  9.    │                                                                          │
  10.    └──────────────────────────────────────────────────────────────────────────┘
  11. */
  12.  
  13.  
  14. #if defined(__TURBOC__)
  15.     #if __STDC__
  16.         #define _Cdecl
  17.     #else
  18.         #define _Cdecl  cdecl
  19.     #endif
  20.     #define _Near
  21. #elif defined(__ZTC__)
  22.     #define _Cdecl
  23.     #define _Near
  24. #elif defined(M_I86) && !defined(__ZTC__)
  25.     #if !defined(NO_EXT_KEYS)
  26.         #define _Cdecl  cdecl
  27.         #define _Near   near
  28.     #else
  29.         #define _Cdecl
  30.         #define _Near
  31.     #endif
  32. #endif
  33.  
  34.  
  35. /*---------------------------[ Function Prototypes ]-------------------------*/
  36.  
  37. unsigned _Cdecl emsalloc(int numpages);
  38. int      _Cdecl emsdealloc(int emmhandle);
  39. int      _Cdecl emsexist(void);
  40. unsigned _Cdecl emsframe(void);
  41. unsigned _Cdecl emsfree(void);
  42. int      _Cdecl emsmap(int emmhandle,int logpage,int phypage);
  43. int      _Cdecl emsread(char *dest,unsigned emsofs,unsigned numbytes);
  44. unsigned _Cdecl emstotal(void);
  45. char    *_Cdecl emsver(void);
  46. int      _Cdecl emswrite(char *src,unsigned emsofs,unsigned numbytes);
  47. unsigned _Cdecl expmem(void);
  48.  
  49.